Skip to content

[#344] Update StoryFactory address and deployment block after redeploy#345

Merged
realproject7 merged 1 commit intomainfrom
task/344-update-mainnet-address
Mar 19, 2026
Merged

[#344] Update StoryFactory address and deployment block after redeploy#345
realproject7 merged 1 commit intomainfrom
task/344-update-mainnet-address

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Replace old StoryFactory address 0x66087c... with 0xc278F4099298118efA8dF30DF0F4876632571948 in all constants
  • Update deployment block from 43559145 to 43561137
  • Updated in: lib/contracts/constants.ts, packages/sdk/src/constants.ts, .env.example

Test plan

  • npm run typecheck passes
  • npm run build passes
  • No remaining references to old address 0x66087c...

Fixes #344

🤖 Generated with Claude Code

Replace old broken address 0x66087c... with new 0xc278F4... and
update deployment block from 43559145 to 43561137 after creation-fee
fix redeploy (plotlink-contracts#25).

Fixes #344

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean constant updates across all three files after redeployment:

  • .env.example: mainnet comment updated ✓
  • lib/contracts/constants.ts: STORY_FACTORY mainnet → 0xc278F4...
  • packages/sdk/src/constants.ts: STORY_FACTORY_MAINNET_ADDRESS → 0xc278F4..., DEPLOYMENT_BLOCK_MAINNET → 43,561,137 ✓
  • CI green

LGTM.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The PR cleanly updates the stale mainnet StoryFactory address and deployment block after the redeploy from plotlink-contracts#25. I did not find any remaining runtime references to the old address or old mainnet deployment block.

Findings

  • [info] Repo-wide search found no remaining references to old mainnet address 0x66087c... or deployment block 43559145 after this change.

Decision

Approve because the constants are now aligned with the replacement mainnet deployment, and local npm run typecheck plus npm run build both pass.

@realproject7 realproject7 merged commit 22ae82c into main Mar 19, 2026
1 check passed
realproject7 added a commit that referenced this pull request Apr 3, 2026
Add reserve_usd_rate column to trade_history to store PLOT/USD at trade
time. Both cron and webhook indexers now fetch and persist the rate.
PriceChart gains a USD/PLOT toggle with dashed lines for approximate
historical data. Includes tiered backfill script (exact via archive RPC,
approximate fallback).

Fixes #345

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@realproject7 realproject7 mentioned this pull request Apr 3, 2026
7 tasks
realproject7 added a commit that referenced this pull request Apr 3, 2026
- Extract ONEINCH_SPOT_PRICE_AGGREGATOR to lib/contracts/constants.ts
- Extract spotPriceAbi to lib/contracts/abi.ts
- Add CHECK constraint on rate_source column
- Document USDC 6-decimal assumption

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Apr 3, 2026
…test

- Backfill script now reads historical HUNT/USD per-block instead of
  using a single current PLOT/USD for all rows
- Cron indexer marks trades as 'backfill_approx' during catch-up scans
  (>200 blocks behind head) instead of falsely labeling as 'live'
- PriceChart labels last USD point as "last USD" (not "latest") when
  newer trades exist without USD data

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
realproject7 added a commit that referenced this pull request Apr 3, 2026
… check

Use fromBlock (oldest block in batch) instead of toBlock to determine
catch-up status. Prevents the final catch-up batch from mislabeling
older trades as 'live' when toBlock happens to be near head.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Mainnet Follow-up] Update StoryFactory address and deployment block after redeploy

2 participants